#include "platformresolver.h"

PlatformResolver::PlatformResolver(QObject *parent) :
    QObject(parent)
{
}

QString PlatformResolver::platform() const
{
    QString platform = "";
#if defined(Q_OS_AIX)
    platform = "AIX";
#elif defined(Q_OS_BSD4)
    platform = "BSD4";
#elif defined(Q_OS_BSDI)
    platform = "BSDI";
#elif defined(Q_OS_CYGWIN)
    platform = "CYGWIN";
#elif defined(Q_OS_DARWIN)
    platform = "DARWIN";
#elif defined(Q_OS_DGUX)
    platform = "DGUX";
#elif defined(Q_OS_DYNIX)
    platform = "DYNIX";
#elif defined(Q_OS_FREEBSD)
    platform = "FREEBSD";
#elif defined(Q_OS_HPUX)
    platform = "HPUX";
#elif defined(Q_OS_HURD)
    platform = "HURD";
#elif defined(Q_OS_IRIX)
    platform = "IRIX";
#elif defined(Q_OS_LINUX) && !defined(Q_WS_MAEMO_5)
    platform = "LINUX";
#elif defined(Q_OS_LYNX)
    platform = "LYNX";
#elif defined(Q_OS_MAC)
    platform = "MAC";
#elif defined(Q_OS_MSDOS)
    platform = "MSDOS";
#elif defined(Q_OS_NETBSD)
    platform = "NETBSD";
#elif defined(Q_OS_OS2)
    platform = "OS2";
#elif defined(Q_OS_OPENBSD)
    platform = "OPENBSD";
#elif defined(Q_OS_OS2EMX)
    platform = "OS2EMX";
#elif defined(Q_OS_OSF)
    platform = "OSF";
#elif defined(Q_OS_QNX)
    platform = "QNIX";
#elif defined(Q_OS_RELIANT)
    platform = "RELIANT";
#elif defined(Q_OS_SCO)
    platform = "SCO";
#elif defined(Q_OS_SOLARIS)
    platform = "SOLARIS";
#elif defined(Q_OS_SYMBIAN)
    platform = "SYMBIAN";
#elif defined(Q_OS_ULTRIX)
    platform = "ULTRIX";
#elif defined(Q_OS_UNIX) && !defined(Q_WS_MAEMO_5)
    platform = "UNIX";
#elif defined(Q_OS_UNIXWARE)
    platform = "UNIXWARE";
#elif defined(Q_OS_WIN32)
    platform = "WIN32";
#elif defined(Q_OS_WINCE)
    platform = "WINCE";
#elif defined(Q_WS_MAEMO_5)
    platform = "MAEMO";
#endif
    return platform;
}
